#
# SPDX-License-Identifier: Apache-2.0
#
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: "{{ cluster_role_binding }}"
subjects:
- kind: ServiceAccount
  name: "{{ service_account }}"
  namespace: "{{ project }}"
- apiGroup: rbac.authorization.k8s.io
  kind: User
  name: system:serviceaccounts:{{ project }}
roleRef:
  kind: ClusterRole
  name: "{{ cluster_role }}"
  apiGroup: rbac.authorization.k8s.io
